package com.hkts.management.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum OrderTypeEnum implements IEnum<Integer> {

    CONFIRMED(0,"待确认"),
    SIGN_CONTRACT(1,"待签合同"),
    TRANSPORT(2,"运输中"),
    EVALUATE(3,"待评价"),
    DONE(4,"已完成"),
    CANCEL(5,"取消/退款");
    @EnumValue
    private Integer value;
    private String desc;

    OrderTypeEnum(Integer value, String desc) {
        this.value=value;
        this.desc=desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    @JsonValue
    public String toString() {
        return this.desc;
    }

}
